<%-- 
    Document   : deleteItemsShow
    Created on : Jun 6, 2009, 10:56:54 AM
    Author     : pavan
--%>

<%@ page import="java.io.* , java.util.*, java.sql.*,  com.jipl.dao.*,com.jipl.beans.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <!-- DW6 -->
    <head>
        <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
        <title>Item Master</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
        <script language="javascript" type="text/javascript" src="../../Scripts/ItemMasterValidations.js"></script>
        <link href="images/mm_health_nutr.css" rel="stylesheet" type="text/css">
        <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
    </head>
    <body bgcolor="#5C743D">
        <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="border-right: #FFFFFF 1px solid;
               border-top: #FFFFFF 1px solid; border-left: #FFFFFF 1px solid;  border-bottom: #FFFFFF 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
            <tr>
                <td height="550" align="center" valign="top">&nbsp;
                    <p>&nbsp;</p>

                    <form id="form" name="ShowItem" method="post" action="DeleteItems">
                        <table width="311" border="0" cellpadding="0" cellspacing="0" style="border-right: #FFFFFF 1px solid;
                               border-top: #FFFFFF 1px solid; border-left: #FFFFFF 1px solid;  border-bottom: #FFFFFF 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                            <tr>
                                <td height="30" colspan="5" align="center" background="images/flash_header1.png"><strong>Delete Items</strong></td>
                            </tr>

                            <%
                                                Vector items=(Vector)request.getAttribute("items");
                                                if (items != null) {
                                                Iterator itg = items.iterator();
                                            while (itg.hasNext()) {
                                            SingleItemBean gb = (SingleItemBean) itg.next();
                                                String itemCode = gb.getItem_code();
                                    String itemName = gb.getItem_name();
                                    String qty=gb.getQty();
                                    String uom=gb.getUom();
                                    String rate=gb.getRate();
                            %>
                            <tr>
                                <td width="47"><input name="itemcode" type="checkbox" value="<%=itemCode%>"></td>
                                <td width="54"><input name="itemName" type="text" value="<%=itemName%>" readonly="true"></td>
                                <td width="54"><input name="item_qty" type="text" value="<%=qty%>" readonly="true"></td>
                                <td width="78"><input name="item_uom" type="text" value="<%=uom%>" readonly="true"></td>
                                <td width="78"><input name="item_rate" type="text" value="<%=rate%>" readonly="true"></td>
                            </tr>
                            <%}
  }%>
                            <tr>
                                <td colspan="5" align="center"><label>
                                        <input type="submit" name="deleteItems" id="deleteItems" value="Delete Item(s)">
                                    </label></td>
                            </tr>
                        </table>

                        <p>&nbsp;</p>
                    </form>
                </td>
            </tr>
        </table>
    </body>
</html>
